﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core.Implements;

namespace COFE3.Data
{
    public class CofeTest
    {
    }

    public class CofeContext : DbContext
    {
        public DbSet<CofeSystemInfo> CofeSystemInfos { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            var cofeSystemInfoConfig = modelBuilder.Entity<CofeSystemInfo>();
            cofeSystemInfoConfig.Ignore(e => e.CofeAttributes);
            cofeSystemInfoConfig.Ignore(e => e.CreationTimeUtc);
            cofeSystemInfoConfig.Ignore(e => e.DynamicProperties);
            cofeSystemInfoConfig.Ignore(e => e.Entity);
            cofeSystemInfoConfig.Ignore(e => e.EntryTypeInfo);
            cofeSystemInfoConfig.Ignore(e => e.LastWriteTimeUtc);
            cofeSystemInfoConfig.Ignore(e => e.Name);
            cofeSystemInfoConfig.Ignore(e => e.Parent);
            cofeSystemInfoConfig.Ignore(e => e.ParseName);
            cofeSystemInfoConfig.Ignore(e => e.Position);
            cofeSystemInfoConfig.Ignore(e => e.Properties);
            cofeSystemInfoConfig.Ignore(e => e.Type);
            //base.OnModelCreating(modelBuilder);
        }
    }

}
